package com.mizhiquan.pojo;

import java.util.Date;

public class EmailCode {
    private String code;

    private String email;

    private Date time;

    private Integer timeout;

    private Boolean used;

    private String userId;

    private String outerId;

    public EmailCode(String code, String email, Date time, Integer timeout, Boolean used,String userId ,String outerId) {
        this.code = code;
        this.email = email;
        this.time = time;
        this.timeout = timeout;
        this.used = used;
        this.userId = userId;
        this.outerId = outerId;
    }

    public EmailCode() {
        super();
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code == null ? null : code.trim();
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public Integer getTimeout() {
        return timeout;
    }

    public void setTimeout(Integer timeout) {
        this.timeout = timeout;
    }

    public Boolean getUsed() {
        return used;
    }

    public void setUsed(Boolean used) {
        this.used = used;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getOuterId() {
        return outerId;
    }

    public void setOuterId(String outerId) {
        this.outerId = outerId;
    }
}